import request from '@/utils/request'

// 查询租赁单据类型列表
export function listDocumentType(query) {
  return request({
    url: '/basic/documentType/list',
    method: 'get',
    params: query
  })
}

// 查询租赁单据类型详细
export function getDocumentType(documentCategory) {
  return request({
    url: '/basic/documentType/' + documentCategory,
    method: 'get'
  })
}

// 新增租赁单据类型
export function addDocumentType(data) {
  return request({
    url: '/basic/documentType',
    method: 'post',
    data: data
  })
}

// 修改租赁单据类型
export function updateDocumentType(data) {
  return request({
    url: '/basic/documentType',
    method: 'put',
    data: data
  })
}

// 删除租赁单据类型
export function delDocumentType(documentCategory) {
  return request({
    url: '/basic/documentType/' + documentCategory,
    method: 'delete'
  })
}
